import { Notify } from "quasar";

const notify_helper = (options) => {
  Notify.create(options);
};

const info = (message) => {
  notify_helper({
    message: message || "Information",
    type: "info",
    position: "bottom-left",
    icon: "info",
    color: "primary",
  });
};

const success = (message) => {
  notify_helper({
    message: message || "Success",
    type: "positive",
    position: "bottom-left",
    icon: "tag_faces",
  });
};

const warn = (message) => {
  notify_helper({
    message: message || "Warning",
    type: "warning",
    position: "bottom-left",
    icon: "warning",
  });
};

const error = (message) => {
  notify_helper({
    message: message || "Error",
    type: "negative",
    position: "bottom-left",
    icon: "error",
  });
};

export default {
  info,
  success,
  warn,
  error,
};
